#ifndef SHIP_H_INCLUDED
#define SHIP_H_INCLUDED

#include "vect2D/Vect2D.h"
#include "object.h"
#include "world.h"

#include <SDL.h>

class Ship : public Object
{
private:
	SDL_Surface* projectile_sprite;
	World* world;

	double acceleration;
	double drag;
	double max_speed;
	int direction;

public:
	Ship(const Vect2D& pos, SDL_Surface* ship_sprite, World* world);

	void Set_projectile(SDL_Surface* projectile_sprite);

	void Move(const int& in_direction);
	void Shot();

	void Frame_calculate();
	void Draw(SDL_Surface* screen, const Vect2D& offset);

	int Hit();
	void Set_remove();
};

#endif // SHIP_H_INCLUDED
